package nonDynamicFields;

import java.awt.BorderLayout;
import java.util.ArrayList;

import javax.swing.JPanel;

import Models.Recipe;

public class NonDynamicEntryList extends JPanel{
		//used to populate the title part of a NonDynamicEntry
	private String[] titles = {"ID:", "Style:", "OG:", "FG:", "IBU:", "Pre Boil Vol:", "Post Boil Vol:",
							"Boil Time:", "Mash Temp:", "Mash Time:", "Efficiency:", "Brew Date:"};
	
	
	private Recipe rec;
	
	private ArrayList<NonDynamicEntry> entries;
	
	public NonDynamicEntryList() {
		this.setLayout(new BorderLayout());
		int length = titles.length;
		for(int i = 0; i < length; i++) {  //create enough entries for the basic info of each recipe
			entries.add(new NonDynamicEntry(titles[i]));
			this.add(entries.get(i), BorderLayout.NORTH);
		}
	}
	
	/**
	 * Updates all of the recipe fields
	 */
	private void update() {
		
	}
	
	/**
	 * Sets this to display the new recipe
	 * @param rec
	 */
	public void setRecipe(Recipe rec) {
		this.rec = rec;
	}
	


}
